<?php
/**
 * Created by : PhpStorm
 * User: godjarvis
 * Date: 2020/8/14
 * Time: 16:10
 */

namespace App\Http\Requests\Product;


use Fresh\Annotation\RequestParam;
use Fresh\Annotation\RequestRule;
use Fresh\Mvc\FormRequest;

class SharePreviewRequest extends FormRequest
{
    /**
     * @RequestParam()
     * @RequestRule(value="in",arguments={"1","2"}, message="type must be in ${p}")
     * @var string
     */
    public $type;

    /**
     * @RequestParam()
     * @var string
     */
    public $pnid;

    /**
     * @RequestParam()
     * @var string
     */
    public $pid;
}